<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<s:set var="currentUser" value="#session['cuser']" />
<form id="userEditForm">
	<s:hidden name="user.id"></s:hidden>
	<s:hidden name="user.password"></s:hidden>
	<s:hidden name="user.role.id" id='roleId'></s:hidden>
	<s:hidden name="user.regDate" ></s:hidden>
	<s:hidden name="user.mendianId" ></s:hidden>
	<input type="hidden" id="curr_role_Id" value="${currentUser.role.id}" >
	
	
	<table width="100%" border="0" cellpadding="0" cellspacing="0"
		class='edit_table'>
		<tbody>
			<tr>
				<th>
					登录名:
				</th>
				<td>
					<input type="text" name="user.userid" value="${user.userid}" <s:if test="%{user.id!=0}"> editable='false'  readonly="readonly"</s:if> />
				</td>
			</tr>

			<tr>
				<th>
					真实姓名:
				</th>
				<td>
					<s:textfield name='user.realName' ></s:textfield>
				</td>
			</tr>
			<tr id="roleTr">
				<th >
					用户角色:
				</th>
				<td>
					<input type="text" id='roleName' name='roleName' value="${user.role.name}">
				</td>
			</tr>
			<tr>
				<th>
					用户类型
				</th>
				<td>
				 <s:select name="user.userType" list="userTypes" listKey="key" listValue="value" cssClass='dropDownList' ></s:select>
				</td>
			</tr>
			<tr>
				<th>
					用户邮箱:
				</th>
				<td>
					<s:textfield name="user.email"></s:textfield>
				</td>
			</tr>
		</tbody>
	</table>
	<div>
		*注：新用户的初始密码888888
	</div>
</form>